home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / programm.ing / libscsi1.zoo / LibScsi-0.01 / Makefile < prev    next >
Encoding:
Makefile  |  1994-03-15  |  2.4 KB  |  104 lines

  1. # Makefile - Copyright Steve Woodford, August 1993.
  2. #
  3. # Ensure the current directory contains 2 sub-directories:
  4. # One called 'o' and one called '3o', to contain the object files.
  5. #
  6. # Modify the following to select which library to build: -mshort, or normal
  7. # SZ is '32' for long integers, '16' for short integers. Remember 'IL' too.
  8. # (Filename length may be a problem on a plain TOS filesystem.)
  9. #
  10. SZ= 32
  11. IL=
  12. #
  13. #SZ= 16
  14. #IL= -mshort
  15.  
  16. # Specify the name of the library to build. You may need to change this
  17. # if building for Gcc version 2. I developed this using v1.39, so my
  18. # libraries follow the old naming rules...
  19. LIBNAME=    libscsi$(SZ).a
  20.  
  21. # At the moment, only Gnu C will be able to compile this library.
  22. CC= gcc
  23. CFLAGS= -O2 -fomit-frame-pointer -fstrength-reduce $(IL)
  24. AR= ar
  25. ARMODE= s
  26.  
  27. D=$(SZ)o
  28. HDR=libscsi.h
  29.  
  30. OBJS= $(D)/scsi_io.o $(D)/scsicmd.o $(D)/test_rdy.o $(D)/rezero.o \
  31.     $(D)/req_sens.o $(D)/rw_seq.o $(D)/rw_rand.o $(D)/seek_seq.o \
  32.     $(D)/seek_rnd.o $(D)/filemark.o $(D)/space.o $(D)/inquire.o \
  33.     $(D)/erase.o $(D)/mod_sens.o $(D)/load.o $(D)/prevent.o \
  34.     $(D)/timeout.o $(D)/to.o $(D)/cfile.o
  35.  
  36. all:    $(LIBNAME)
  37.  
  38. clean:
  39.     rm -rf 16o/* 32o/* core
  40.  
  41. realclean:    clean
  42.     rm -rf *.a
  43.  
  44. $(LIBNAME):    $(OBJS)
  45.     $(AR) $(ARMODE) $(LIBNAME) $(OBJS)
  46.  
  47. $(D)/scsi_io.o:    scsi_io.c $(HDR)
  48.     $(CC) $(CFLAGS) $< -c -o $@
  49.  
  50. $(D)/scsicmd.o:    scsicmd.cpp
  51.     $(CC) $(IL) -P -x assembler-with-cpp -c $< -c -o $@
  52.  
  53. $(D)/test_rdy.o:    test_rdy.c $(HDR)
  54.     $(CC) $(CFLAGS) $< -c -o $@
  55.  
  56. $(D)/rezero.o:    rezero.c $(HDR)
  57.     $(CC) $(CFLAGS) $< -c -o $@
  58.  
  59. $(D)/req_sens.o:    req_sens.c $(HDR)
  60.     $(CC) $(CFLAGS) $< -c -o $@
  61.  
  62. $(D)/rw_seq.o:    rw_seq.c $(HDR)
  63.     $(CC) $(CFLAGS) $< -c -o $@
  64.  
  65. $(D)/rw_rand.o:    rw_rand.c $(HDR)
  66.     $(CC) $(CFLAGS) $< -c -o $@
  67.  
  68. $(D)/seek_seq.o:    seek_seq.c $(HDR)
  69.     $(CC) $(CFLAGS) $< -c -o $@
  70.  
  71. $(D)/seek_rnd.o:    seek_rnd.c $(HDR)
  72.     $(CC) $(CFLAGS) $< -c -o $@
  73.  
  74. $(D)/filemark.o:    filemark.c $(HDR)
  75.     $(CC) $(CFLAGS) $< -c -o $@
  76.  
  77. $(D)/space.o:    space.c $(HDR)
  78.     $(CC) $(CFLAGS) $< -c -o $@
  79.  
  80. $(D)/inquire.o:    inquire.c $(HDR)
  81.     $(CC) $(CFLAGS) $< -c -o $@
  82.  
  83. $(D)/erase.o:    erase.c $(HDR)
  84.     $(CC) $(CFLAGS) $< -c -o $@
  85.  
  86. $(D)/mod_sens.o:    mod_sens.c $(HDR)
  87.     $(CC) $(CFLAGS) $< -c -o $@
  88.  
  89. $(D)/load.o:    load.c $(HDR)
  90.     $(CC) $(CFLAGS) $< -c -o $@
  91.  
  92. $(D)/prevent.o:    prevent.c $(HDR)
  93.     $(CC) $(CFLAGS) $< -c -o $@
  94.  
  95. $(D)/timeout.o:    timeout.c $(HDR)
  96.     $(CC) $(CFLAGS) $< -c -o $@
  97.  
  98. $(D)/to.o:    to.c $(HDR)
  99.     $(CC) $< -c -o $@
  100.  
  101. $(D)/cfile.o:    cfile.c cfile.h
  102.     $(CC) $(CFLAGS) $< -c -o $@
  103.  
  104.